<template>
	<view>
		<view class="a" v-for="item in list">
			<text>投诉公司：{{item.company.name}}</text>
			<text>单号：{{item.infoNo}}</text>
			<text>类型：{{item.questionType}}</text>
			<text>内容：{{item.description}}</text>
			<text>时间：{{item.createTime}}</text>
		</view>
		<u-button type="primary" text="新增" @click="tonext"></u-button>
	</view>
	
</template>

<script>
	export default {
		data() {
			return {
				list:[]
			}
		},
		onLoad() {
			this.gettousu()
		},
		methods: {
			tonext(){
				uni.navigateTo({
					url:'/pages/other/wuliu/addtousu/addtousu'
				})
			},
			gettousu(){
				this.api.get('/prod-api/api/logistics-inquiry/logistics_complaint/my-list').then(res=>{
					this.list=res.data.rows
				})
			}
		}
	}
</script>

<style lang="scss">
.a{
	display: flex;
	flex-direction: column;
	line-height: 28px;
	width: 300px;
	border: 1px solid orange;
	margin: 20px auto;
}
</style>
